package com.app.mapper.authority;

import com.app.entity.authority.Dictionary;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

@Mapper
public interface DictionaryMapper {

	List<Dictionary> getInfo(@Param("currentItem") Integer currentItem,// Pagination _page,
                             @Param("pageSize") Integer pageSize,

                             @Param("searchName") String searchName,
                             @Param("orderName") String orderName,
                             @Param("orderKind") String orderKind
    );

	int getListSize(@Param("currentItem") Integer currentItem, // Pagination _page,
                    @Param("pageSize") Integer pageSize,
                    @Param("searchName") String searchName);

	//根据ID获取list
	List<Dictionary>getList(Dictionary _data);

	//增
	Integer insert(Dictionary _data);

	//改
	Integer updateList(Dictionary _data);

	//删
	Integer delList(Dictionary _data);

	//查重复CODE
	List<Dictionary>validateLevelCode(Dictionary _data);
}
